home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / netbsd / experimental / audio.readme < prev    next >
Text File  |  1995-10-22  |  1KB  |  51 lines

  1. Descr:     /dev/audio (Audio-device)
  2. Author: Timothy Newsham <newsham@wiliki.eng.hawaii.edu>
  3.  
  4. 1) Apply kern.patch to your kernel sources.
  5.    This makes changes to the files arch/amiga/amiga/cc.c and 
  6.    arch/amiga/amiga/cc.h.
  7.    The changes should be completely compatible with existing
  8.    kernel code which uses the audio hardware.
  9.  
  10. 2) Rebuild kernel and boot with it.  Make sure to put it into
  11.    place ("/netbsd") before running modload.
  12.  
  13. 3) Build the module and load it:
  14.  
  15.      Make load
  16.  
  17.    This load the module into your kernel.
  18.  
  19. 4) Make the device files.  For testing you can make it in your 
  20.    current directory:
  21.  
  22.      MAKEDEV
  23.  
  24. You're now ready to use the audio device.  There are 6 of them,
  25. aud0 through aud5.  They are all setup as mu-law devices at 8khz
  26. by default.  The devices are:
  27.  
  28.    aud 0  - stereo device,  channels 0 and 1
  29.    aud 1  - stereo device,  channels 2 and 3
  30.    aud 3  - mono channel 0
  31.    ...
  32.    aud 5  - mono channel 3
  33.  
  34. No two channels may be opened simultaneously.  To test:
  35.  
  36.   cat samp.au > aud0
  37.   cc test.c -o autest
  38.   autest
  39.  
  40. A utility that configures the device has been included:
  41.  
  42.   cc auconfig.c -o auconfig
  43.  
  44. This utility can set the encoding format a device recognizes.
  45. The default is mu-law.  The other formats supported are
  46. 8-bit signed linear (amiga format) and 8-bit unsigned linear.
  47. Read the top of auconfig.c for more information.
  48.  
  49.                                Tim N.
  50.  
  51.